package exp;

import java.sql.Array;
import java.util.Arrays;
import java.util.Scanner;

public class P04SortAndUniqueWord {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.nextLine().trim();
        String[] words = s.split(" ");
        Arrays.sort(words);
        String recent=words[0];
        System.out.println(words[0]);
        for (int i=1; i<words.length;i++){
            if (words[i].equals(recent)) continue;
            System.out.println(words[i]);
            recent = words[i];
        }
    }
}
